package com.weiyuwqj.api.service;

import com.weiyuwqj.api.model.SysArticle;
import com.weiyuwqj.api.base.BaseService;
import com.weiyuwqj.api.common.PageList;
import com.weiyuwqj.api.common.Paginator;
import com.weiyuwqj.api.model.vo.ArticleVo;

import java.util.List;
import java.util.Map;

/**
 * Created by yandq on 15/11/7.
 */
public interface SysArticleService extends BaseService<SysArticle> {


    //删除
    Integer deleteById(Integer articleId);
    

    //插入
    void insertArticle(SysArticle article, String pics);

    PageList getList(Paginator p, Map map);

    /**
     * 获取最新的一条公告
     * @return 公告
     */
	List<SysArticle> getArticleIndex();
}
